﻿@model EcBlog.Models.Page 
 

    <fieldset>
        <legend>Page</legend>

        @Html.HiddenFor(model => model.PageId)
        
        <table class="editor-table">
            <tr>
                <td>
                    <div class="editor-label">
                        @Html.LabelFor(model => model.Title)
                    </div>
                    <div class="editor-field">
                        @Html.EditorFor(model => model.Title)
                        @Html.ValidationMessageFor(model => model.Title)
                    </div>

                    <div class="editor-label">
                        @Html.LabelFor(model => model.Slug)
                    </div>
                    <div class="editor-field">
                        @Html.EditorFor(model => model.Slug)
                        @Html.ValidationMessageFor(model => model.Slug)
                    </div>

                    <div class="editor-label">
                        @Html.LabelFor(model => model.LayoutId)
                    </div>
                    <div class="editor-field">
                        @Html.EditorFor(model => model.LayoutId)
                        @Html.ValidationMessageFor(model => model.LayoutId)
                    </div>
                    
                     <div class="editor-label">
                        @Html.LabelFor(model => model.Published)
                    </div>
                    <div class="editor-field">
                        @Html.EditorFor(model => model.Published)
                        @Html.ValidationMessageFor(model => model.Published)
                    </div>
                </td>
                <td> 
                    <div class="editor-label">
                        @Html.LabelFor(model => model.IsCommentable)
                    </div>
                    <div class="editor-field">
                        @Html.EditorFor(model => model.IsCommentable)
                        @Html.ValidationMessageFor(model => model.IsCommentable)
                    </div>

                    <div class="editor-label">
                        @Html.LabelFor(model => model.IsPublish)
                    </div>
                    <div class="editor-field">
                        @Html.EditorFor(model => model.IsPublish)
                        @Html.ValidationMessageFor(model => model.IsPublish)
                    </div>

                    <div class="editor-label">
                        @Html.LabelFor(model => model.ShowPostList)
                    </div>
                    <div class="editor-field">
                        @Html.EditorFor(model => model.ShowPostList)
                        @Html.ValidationMessageFor(model => model.ShowPostList)
                    </div> 
                </td>
            </tr>
            <tr>
                <td colspan="2">
                    <div class="editor-label">
                        @Html.LabelFor(model => model.Summary)
                    </div>
                    <div class="editor-field">
                        @Html.EditorFor(model => model.Summary)
                        @Html.ValidationMessageFor(model => model.Summary)
                    </div> 
                </td>
            </tr>
            <tr>
                <td colspan="2">
                    <div class="editor-label">
                        @Html.LabelFor(model => model.ContentHtml)
                    </div>
                    <div class="editor-field">
                        @Html.EditorFor(model => model.ContentHtml)
                        @Html.ValidationMessageFor(model => model.ContentHtml)
                         
                    </div>
                </td>
            </tr>
        </table>
    </fieldset>
 
